home *** CD-ROM | disk | FTP | other *** search
- property spriteNum, pBackgroundOptionSelect
- global puzzPicFileURL, puzzShading, puzzleImageRect, puzzleTile, puzzpicrotation
-
- on new me, spriteRef
- if the paramCount = 1 then
- nothing()
- else
- if the paramCount = 2 then
- spriteNum = spriteRef.spriteNum
- end if
- end if
- return me
- end
-
- on mouseWithin me
- pBackgroundOptionSelect = 0
- updateStage()
- if inside(theMouseLoc(), the rect of sprite 250) then
- pBackgroundOptionSelect = ((the mouseV - 23) / 24) + 1
- if (pBackgroundOptionSelect >= 1) and (pBackgroundOptionSelect <= 14) then
- set the locV of sprite 251 to ((the mouseV - 23) / 24 * 24) + 33
- updateStage()
- else
- pBackgroundOptionSelect = 0
- set the locV of sprite 251 to -9999
- end if
- else
- pBackgroundOptionSelect = 0
- set the locV of sprite 251 to -9999
- updateStage()
- end if
- end
-
- on mouseUp me
- set the loc of sprite 250 to point(-9999, -9999)
- set the locV of sprite 251 to -9999
- updateStage()
- if (pBackgroundOptionSelect >= 1) and (pBackgroundOptionSelect <= 14) then
- member("puzzle player tile").media = member("tile" & pBackgroundOptionSelect).media
- sprite(1).visible = 0
- set the member of sprite 1 to "tile"
- sprite(1).visible = 1
- updateStage()
- puzzleTile = pBackgroundOptionSelect
- end if
- end
-
- on mouseLeave me
- set the mouseDownScript to "clearMenu(me)"
- pBackgroundOptionSelect = 0
- set the locV of sprite 251 to -9999
- updateStage()
- end
-
- on mouseEnter me
- set the mouseDownScript to EMPTY
- end
-